import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './router'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import Directives from './command/index.js'
import VueLazyload from 'vue-lazyload'

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }
app.use(router) 
app.use(Directives)
app.use(VueLazyload, {
  preLoad: 1.3,
  error: 'path/to/error.png', // 加载失败时显示的图片
  loading: 'path/to/loading.gif', // 加载中的图片
  attempt: 1
})
app.mount('#app')
